package com.hae.shop.member.model.reqDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ApiModel(value = "会员sso登录请求体")
public class UserSSOLoginReqDto implements Serializable {

    private static final long serialVersionUID = -1273036278308531503L;
    /**
     * 手机号码
     */
    @NotBlank(message = "手机号不能为空！")
    @Size(min = 11, max = 11, message = "手机长度11位！")
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空！")
    @ApiModelProperty(value = "密码")
    private String password;
}
